package com.neouton.crm.sales.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neouton.crm.sales.entity.SalesChangeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 巾凡
* @description 针对表【sales_change(变更表)】的数据库操作Mapper
* @createDate 2022-11-09 09:34:26
* @Entity com.neouton.crm.sales.entity.SalesChange
*/
@Mapper
public interface SalesChangeMapper extends BaseMapper<SalesChangeVO> {

    /**
     * 查询变更信息
     * @param projectManageId
     * @param changeClass
     * @return
     */
    List<SalesChangeVO> queryChangeInfo(@Param("projectManageId") Integer projectManageId,@Param("changeClass") Integer changeClass);

    /**
     * 查询变更信息
     * @return
     */
    List<SalesChangeVO> queryOppAnProChangeInfo(Integer oppid);

    int deleteByPrimaryKey(Long id);

    int insert(SalesChangeVO record);

    int insertSelective(SalesChangeVO record);

    SalesChangeVO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SalesChangeVO record);

    int updateByPrimaryKey(SalesChangeVO record);

}
